﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Runtime.Serialization;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace WJP.DataPortal
{
    /// <summary>
    /// 数据门户上下文
    /// </summary>
    [DataContract]
    [Serializable]
    public class DataPortalContext
    {
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public IPrincipal Principal { get; set; }

        /// <summary>
        /// 客户端文化
        /// </summary>
        [DataMember]
        public string ClientCulture { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string ClientUICulture { get; set; }

        /// <summary>
        /// 客户端上下文
        /// </summary>
        [DataMember]
        public HybridDictionary ClientContext { get; set; }

        /// <summary>
        /// 全局上下文
        /// </summary>
        [DataMember]
        public HybridDictionary GlobalContext { get; set; }
    }
}
